<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="UTF-8"%>
<%@include file="/lib/common/basedir.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<%@include file="/lib/common/headerResource.html"%>
<!--sidebar-->
<link href="<%=basedir%>/lib/css/sidebar.css" rel="stylesheet">
<title>membership renewal</title>

<style>
.content{
	margin-top: 3.8em;
}

.title {
	font-size: 1.3em;
}

.position {
	padding-left: 1.8em;
}

.line{
	margin-bottom: 3em;
}

</style>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<!--左侧导航-->
			<div class="col-sm-3 col-md-2 sidebar">
				<%@include file="../sidebar.jsp"%>
			</div>
			<!--右面板-->
			<div
				class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 rightPanel">
				<div class="col-md-10">
					<div class="row">
						<ul class="nav nav-tabs">
							<li role="presentation" ><a href="<%=basedir %>/member/pointsToBalanceInfo">积分兑换规则</a></li>
							<li role="presentation" class="active"><a href="<%=basedir %>/member/pointsToBalance">积分兑换</a></li>
						</ul>
					</div>
					<form class="form-horizontal content" method="post" action="<%=basedir %>/member/pointsToBalancePost">
						<div class="form-group line">
							<span class="title col-md-1" >数目</span>
							<div class="col-md-4">
								<input type="text" name="quantity" class="form-control" id="end"
									placeholder="兑换的积分数目">
							</div>
						</div>

						<div class="form-group line">
							<div class="col-md-2 ">
								<button type="submit" class="btn btn-default  btn-block">兑换</button>
							</div>
						</div>
						
							<%
						if (request.getAttribute("failedMsg") != null) {
					%>
					<div class="form-group" style="margin-top:-2.2em;">
						<div class="col-md-5 ">
							<div class="alert alert-danger alert-dismissible" role="alert"
								style="margin-top: 2em;">
								<button type="button" class="close" data-dismiss="alert"
									aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
								<%=request.getAttribute("failedMsg")%>
							</div>
						</div>
					</div>

					<%
						} else {
						}
					%>

					<%
						if (request.getAttribute("successMsg") != null) {
					%>
					<div class="form-group" style="margin-top:-2.2em;">
						<div class="col-md-5 ">
							<div class="alert alert-success alert-dismissible" role="alert"
								style="margin-top: 2em;">
								<button type="button" class="close" data-dismiss="alert"
									aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
								<%=request.getAttribute("successMsg")%>
							</div>
						</div>
					</div>
					<%
						} else {
						}
					%>
						
					</form>
				</div>
			</div>
		</div>
	</div>
	<!-- jquery and bootstrap js -->
	<%@include file="/lib/common/footerResource.html"%>

</body>
</html>